﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    /// <summary>
    /// 学习计划表
    /// </summary>
    [Table("LearningPlan")]
    public class LearningPlan
    {
        /// <summary>
        /// 开始日期
        /// </summary>
        [Key, Column(Order = 1)]
        public DateTime StartDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        [Key, Column(Order = 2)]
        public DateTime EndDate { get; set; }

        /// <summary>
        /// 计划学习分钟数
        /// </summary>
        public int PlaneMinutes { get; set; }

        /// <summary>
        /// 上周结余分钟数（未学习完）
        /// </summary>
        public int? PreBalanceMinutes { get; set; }
    }
}
